vcTransportSolution

Transport solution is a single route from one transport node (vcTransportNode) to another transport node without any branches or loops. The transport solutions are enforced to be valid when they are created or modified. The solution consists of an ordered list of transport link references (vcTransportLink), starting from the Source node and ending to the Destination node. Note: A valid transport solution conforms to these rules: - Transport solution can be empty i.e. contain no links. Using empty solutions is not recommended. Set the vcProduct.TransportSolution to None instead. - Each transport link's Source node is the same as the previous link's Destination node (must form a continuous one-directional path) - No two links have the same Source node (cannot contain branches) - No two links have the same Destination node (cannot contain joins or loops) - The Source and Destination nodes of the whole solution cannot be the same (cannot be a loop).

See in: Overview

Module: vcProcessModel

Parent: vcObject

Children -

Referenced by: vcProduct.TransportSolution, vcTransportSystem.findSolution()

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
DestinationvcTransportNodeRGets the transport node this route ends in. Returns None if the solution is empty.
SourcevcTransportNodeRGets the transport node this route starts from. Returns None if the solution is empty.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
newvcTransportSolutionList[vcTransportLink] linksCreates a new transport solution from a set of links that must conform to the rules of a valid solution.
See more
Parameters:
links (List of vcTransportLink): The links, in order of traversal.

Returns:
vcTransportLink: The created transport solution.

Exceptions:
ValueError: If the created solution was invalid. Shows the index of the link that caused the solution to be invalid.
setOnSolutionInvalidatedNoneCallable OR None functionSets the callback function that is called when the transport solution is invalidated.
See more
Parameters:
function (callable): The function to call when the event is triggered.